package com.shenqi.language.converter;

import com.shenqi.language.domain.Vocabulary;
import com.shenqi.language.vo.VocabularyVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface VocabularyVOConverter {
    VocabularyVOConverter INSTANCE = Mappers.getMapper(VocabularyVOConverter.class);

    VocabularyVO toVO(Vocabulary vocabulary);

    List<VocabularyVO> toVOList(List<Vocabulary> vocabularyList);
}
